﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="usermanage_add.aspx.cs" Inherits="uswinweb.admin.usermanage_add" %>
<%@ Register TagPrefix="win" TagName="pop_complist" Src="../datacontrol/pop_complist.ascx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>新增</title>
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<link href="../css/comm.css" rel="stylesheet" type="text/css" />
<link href="../css/validator.css" rel="stylesheet" type="text/css" />
<link href="../css/lightview.css" type="text/css" rel="stylesheet" />
<script src="../js/jquery.js" type="text/javascript"></script>
<script src="../js/prototype.js" type="text/javascript"></script>
<script src="../js/scriptaculous.js?load=effects" type="text/javascript"></script>
<script src="../js/lightview.js" type="text/javascript"></script>
<script src="../js/effects.js" type="text/javascript"></script>
<script src="../js/table.js" type="text/javascript"></script>
<script src="../js/jquery_common.js" type="text/javascript"></script>
<script src="../js/jquery-choose.js" type="text/javascript"></script>
<script src="../js/formValidator.js" type="text/javascript" charset="UTF-8"></script>
<script src="../js/formValidatorRegex.js" type="text/javascript" charset="UTF-8"></script>
</head>
<body>
<div class="repcot" id="repcot">
<form id="form1" runat="server" action="" method="post" >
	<table cellpadding="0" cellspacing="0" border="0" class="adtb">
		<thead>
			<tr>
				<td colspan="2" style="position:relative;">新增用户</td>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td width="15%"><p class="zi1">用户名：</p></td>
				<td>
				<p class="zi2"><input id="uLnametxt" name="uLnametxt"  type="text" class="soout" onblur="this.className='soout'" onfocus="this.className='soon'" style="width:150px;" /></p>
                <span id="userNameTip"></span>
				</td>
			</tr>
			<tr>
				<td width="15%"><p class="zi1">中文名：</p></td>
				<td>
				<p class="zi2"><input id="uRnametxt" name="uRnametxt"  type="text" class="soout" onblur="this.className='soout'" onfocus="this.className='soon'" style="width:150px;" /></p>
                <span id="chineseNameTip"></span>
				</td>
			</tr>
			<tr>
				<td width="15%"><p class="zi1">英文名：</p></td>
				<td>
				<p class="zi2">
                <input id="uEnametxt" name="uEnametxt"  type="text" class="soout" onblur="this.className='soout'" onfocus="this.className='soon'" style="width:150px;" />
                <span id="englishNameTip"></span>
                </p>
				</td>
			</tr>
			<tr>
				<td width="15%"><p class="zi1">邮箱：</p></td>
				<td>
				<p class="zi2">
                <input id="uEamiltxt" name="uEamiltxt"  type="text" class="soout" onblur="this.className='soout'" onfocus="this.className='soon'" style="width:150px;" />
                </p>
                <span id="emailTip"></span>
				</td>
			</tr>
			<tr>
				<td width="15%"><p class="zi1">密码：</p></td>
				<td>
				<p class="zi2">
                <input id="uPwdtxt" name="uPwdtxt"  type="password" class="soout" onblur="this.className='soout'" onfocus="this.className='soon'" style="width:150px;" />
                </p>
                <span id="passwordTip"></span>
				</td>
			</tr>
			<tr>
				<td width="15%"><p class="zi1">确认密码：</p></td>
				<td>
				<p class="zi2">
                <input id="uSurePwdtxt" name="uSurePwdtxt"  type="password" class="soout" onblur="this.className='soout'" onfocus="this.className='soon'" style="width:150px;" />
                </p>
                <span id="password2Tip"></span>
				</td>
			</tr>
            <tr>
				<td width="15%" ><p class="zi1">所属公司：</p></td>
                <td>
				<div class="zi2 popxg" style="z-index:100" >
					<p class="ip1" id="comp_hidd_mino"></p>
                    <input type="hidden" id="comp_hidd_luffy" name="comp_hidd_luffy" value="0" />
					<span class="an"></span>
					<div class="cn" style="width:300px;"  id="comp_hidd_div">
						<div id="showdata2">
                        <win:pop_complist runat="server" ID="pop_complist1" />
                        </div>
					</div>
				</div>
				</td>
            </tr>
			<tr>
				<td width="15%"><p class="zi1">所属用户组：</p></td>
                <td>
				<p class="zi2">
					<select id="group_hidd_luffy" name="group_hidd_luffy">
                    <%
                        LTJ.Entity.ManageGroup opmodes = new LTJ.Entity.ManageGroup();
                        foreach (string cname in Enum.GetNames(opmodes.GetType()))
                        {
                            int s_value = Convert.ToInt16(Enum.Parse(opmodes.GetType(), cname));
                    %>
                    <option value="<%=s_value%>"><%=LTJ.Entity.EnumType.GetGroupType(s_value)%></option>
                    <%
                        }        
                    %>
                    </select>
				</p>
				</td>
			</tr>
			<tr>
				<td width="15%"><p class="zi1">权限：</p></td>
				<td>
				<p class="zi2">
                <input type="checkbox" name="authority1" id="authority1" checked value="select" />可查询
                <input type="checkbox" name="authority2" id="authority2" checked value="update" />可修改价格
                <input type="checkbox" name="authority3" id="authority3" checked value="del" />可删除价格
                </p>
				</td>
			</tr>
		</tbody>
	</table>
	<p class="insa">
		<span><input class="save" name="" type="submit" value="确 定" /></span>
	</p>
    </form>
</div>
</body>
<script type="text/javascript">
    jQuery(document).ready(function () {
        choose("popxg");
        jQuery.formValidator.initConfig({ formid: "form1", onsuccess: function () { return true; submitonce: true } });
        jQuery("#username").formValidator({ onshow: "4-20位字符，可由中文、英文、数字及“_”、“-”组成", onfocus: "用户名至少4个字符,最多20个字符", oncorrect: "&nbsp;" }).inputValidator({ min: 4, max: 20, onerror: "您输入的用户名非法,请确认" });
        jQuery("#chineseName").formValidator({ onshow: "请输入中文", oncorrect: "&nbsp;" }).regexValidator({ regexp: "chinese", datatype: "enum", onerror: "格式不正确" })
        jQuery("#englishName").formValidator({ onshow: "请输入英文字母", oncorrect: "&nbsp;" }).regexValidator({ regexp: "letter", datatype: "enum", onerror: "格式不正确" });
        jQuery("#email").formValidator({ onshow: "请输入常用的邮箱，将用来找回密码、接收订单通知等", oncorrect: "&nbsp;" }).inputValidator({ min: 6, max: 100, onerror: "你输入的邮箱长度不正确,请确认" }).regexValidator({ regexp: "^([\\w-.]+)@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.)|(([\\w-]+.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(]?)$", onerror: "你输入的邮箱格式不正确" });
        jQuery("#password").formValidator({ onshow: "6-16位字符，可由英文、数字及“_”、“-”组成", onfocus: "密码至少6个字符,最多16个字符", oncorrect: "&nbsp;" }).inputValidator({ min: 6, max: 16, onerror: "您输入的密码非法,请确认" });
        jQuery("#password2").formValidator({ onshow: "请再次输入密码", onfocus: "两次密码必须一致", oncorrect: "&nbsp;" }).inputValidator({ min: 1, empty: { leftempty: false, rightempty: false, emptyerror: "重复密码两边不能有空符号" }, onerror: "重复密码不能为空,请确认" }).compareValidator({ desid: "password", operateor: "=", onerror: "2次密码不一致,请确认" });
       
    });
</script>
</html>


